class CreateComments < ActiveRecord::Migration
  def self.up
		create_table :comments do|t|
			t.column :title,:string,  :limit => 80
			t.column :user_id,:integer
			t.column :content,:text
			t.column :shakes, :integer, :default=>1
			t.column :karma,:integer
			t.column :opinions,:integer
			t.column :negatives,:integer
			t.column :delete, :string, :limit => 3, :default => 'NO', :null => false
			t.column :create_on, :datetime
			t.column :modified, :integer
		end 	  
  end

  def self.down
	  drop table commentaries
  end
end
